package com.zhuyuan.common.log.filter;


import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;

/**
 * @Author: 张琳凯
 * @Description: 日志记录过程中，排除一些敏感的信息，保证数据的安全
 * @DateTime: 2024/12/18 15:41
 **/
public class FiledExcludeFilter extends SimplePropertyPreFilter {

    public FiledExcludeFilter addExcludes(String... filters){
        for (int i = 0; i < filters.length; i++) {
            this.getExcludes().add(filters[i]);
        }
        return this;
    }
}
